home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: VAX has Sethost.log, DOS has ????
- Date: 21 Feb 1996 10:22:32 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4gfnt8INNbor@keats.ugrad.cs.ubc.ca>
- References: <4gbh10$649@hermes.louisville.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4gbh10$649@hermes.louisville.edu>,
- Andy Record <adrecoz1@ulkyvm.louisville.edu> wrote:
- >Hello everybody,
- >
- > VAX has a command that lets the user capture everything written to the
- >screen, regardless of if the keyboarder typed it in or if a program
- >writes it to the screen, to a sethost.log file (a text file). I was
- >trying to make something that would do the same in DOS. Does anybody
- >know of a program that does this, or have snippets of source code that
- >might help me...?
-
- You can't do it easily. For one thing, there is no multitasking. Writing
- ``background'' programs involves severe hackery.
-
- Secondly, most DOS programs write directly to the screen memory, rather than
- via an output stream that you can capture.
-
- Thirdly, you can't do it with pipes, because DOS's pipes are not concurrent.
- Something like UNIX's "telnet <host> | tee <logfile>" can't work, because pipes
- are done using intermediate temporary files. There is no way to open a
- co-process that concurrently reads the output of another process.
- --
-
-